
// ShipWatchDlg.h : header file
//

#pragma once

#include <StructCollection.h>
#include <StructMedia.h>
// CShipWatchDlg dialog
class CShipWatchDlg : public CDialog
{
// Construction
public:
	CShipWatchDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_SHIPWATCH_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

private:
	IplImage* pFrameCur;
	int     m_dibFlag;
	LPBITMAPINFO m_lpBmi;
	CReadConfig readcfg;
	int BufferCount;
	CRITICAL_SECTION csPrint; 
	//WSysConfigString inifile;
	//HANDLE m_hOutputMapping;
	//HANDLE m_hReadyMapping;
 //   WSysConfigString OutputMedia;
 //   WSysConfigString ReadyStatus;
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	// WatchMediaData
	void WatchMediaData(void);
	void SetWatchMedia(IplImage* pFrame);
	// LoadCollectionDll
	int LoadCollectionDll();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	// CheckOpenFileMap
	bool CheckOpenFileMap(int inum);
};
